Surprise Me!

[TUTO]comment faire un logiciel de capture d'ecran en VB !

2011-07-30 6 Dailymotion

un petite vidéo pour un programme en visual basic 2008 <br />mais chaque bouttons on un code <br />les voici:Dim bounds As Rectangle<br />Dim screenshot As System.Drawing.Bitmap<br />Dim graph As Graphics<br />bounds = Screen.PrimaryScreen.Bounds<br />screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)<br />graph = Graphics.FromImage(screenshot)<br />graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)<br />PictureBox1.Image = screenshot<br />2eme boutton<br />Dim savefiledialog1 As New SaveFileDialog<br />Try<br />savefiledialog1.Title = "save file"<br />savefiledialog1.FileName = ".bmp"<br />savefiledialog1.Filter = "bitmap | *.bmp"<br />If savefiledialog1.ShowDialog() = DialogResult.OK Then<br />PictureBox1.Image.Save(savefiledialog1.FileName, System.Drawing.Imaging.ImageFormat.Bmp)<br /><br />End If<br /><br />Catch ex As Exception<br /><br />End Try <br /><br />bonne chance et abonner vous ou laisser des commentaire

Buy Now on CodeCanyon